I have a persistent trigger that fires post module open. This trigger fires both when opening the current version of the module, or if I'm opening a baseline to view it.
I want the code that runs when the trigger fires to only run if I'm opening the current version of the module.
If I've opened a baseline I don't seem to be able to get a handle on the version that has been opened, i.e. the trigger always behaves as if it was fired from the current version, even when it's a baseline that has been opened and caused it to fire.
I've tried using 'Module m = current' and 'Module m = module(t)' along with 'isBaseline(m)', but these both result in the handle being to the current version. Also if I close the current version, having opened a baseline then open another baseline from within that, I get a dxl error as it can't get a handle on the current version.
If anyone has a way of getting the trigger to detect if it has been fired as a result of opening a baseline or not, any help would be greatly appreciated.
Thanks
SystemAdmin - Thu Jan 28 06:39:10 EST 2010 |